package pl.kosmowska.ewelina.client.views;

import java.util.List;

import pl.kosmowska.ewelina.client.app.requestfactory.dto.LoanDataProxy;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface LoanView extends IsWidget {

	interface Presenter {
		void goTo(Place place);

		void getLoanDataList();

		void deleteLoanData(LoanDataProxy selectedItem);

		void goToLoanAddPlace();

		void goToLoanEditPlace(LoanDataProxy selectedItem);

	}

	void setPresenter(Presenter presenter);

	void showMessage(String errorMessage);

	void updateAfterLoanDelete(LoanDataProxy selectedItem);

	void reInitView(List<LoanDataProxy> loanDataList);

	boolean isAlreadyInit();

	void setAlreadyInit(boolean alreadyInit);
}
